package dao;

import java.sql.Connection;

import db.DBUnit;
import entity.Boss;
import entity.Customer;

/**
 * 老板dao
 */
public class BossDao {
    /**
     * 老板登录
     * @param conn
     * @param boss
     * @return resultBoss
     * @throws Exception
     */
    public Boss login(Connection conn, Customer customer) throws Exception {
        Boss resultCustomer = null;
//        String sql = "select * from boss where id=? and password=?";//通过密码和ID验证登录
//        PreparedStatement pstmt = conn.prepareStatement(sql);
        //...
        return resultCustomer;
    }
    /**
     * 测试登录
     */
    public void testLogin() {
		DBUnit dbUnit = new DBUnit();
		Connection conn = dbUnit.getConnection();
		if(conn == null) {
			System.out.println("数据库连接失败！");
			return;
		}
		//...
    }
    
    public static void main(String[] args) {
    	
    }
}
